<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo Yii::app()->name;?> 后台管理</title>
<?php $this->renderPartial('/_include/_header');?>


<style>
.content img{
	width:24px;
	height:24px;
	vertical-align:middle;
	}
</style>
</head>
<body class="view_index" id="view_index_Article">
    <div class="slideTxtBox">
	<div class="hd" style="margin:0px 20px;">
      <ul style="width:100%">
	<li>
            <a href="<?php echo $this->createUrl('post/index');?>"><span></span>帖子列表</a></li>
          <li class="on">
            <a href="#"><span></span>评论列表</a></li>
         </ul>
	</div>
</div>	 
<div class="padding-0-20">
<table class="view-index-search mb-10" border="0" cellspacing="0" cellpadding="0" width="96%">
<form class="view-index-form" method="get" action="<?php echo $this->createUrl('replay');?>" enctype="multipart/form-data">
<input type="hidden" class="input-text" id="YII_CSRF_TOKEN" name="YII_CSRF_TOKEN" value="<?php echo Yii::app()->request->csrfToken;?>">
<input type="hidden" value="<?php echo $postid;?>" name="postid" />       
 <input type="hidden" value="<?php echo $subject;?>" name="subject" />        
        <tr>
        <td class="search">
        <div class="div-search" style="margin:0px 0px">
        <div class="ftr">
        
        
        
        </div>
       关键字：<input class="input-text" value="<?php echo $search['keyword'];?>" name="keyword" id="ts" style="width:200px;"/><img align="absmiddle" id="delkey" onclick="return $('#ts').val('')" style="margin-left:-30px; cursor: pointer;" src="<?php echo  Yii::app()->request->baseUrl; ?>/static/common/images/clear.png"/>
        <span class="view-index-batch">
        <input id="submit_search" class="btn-button confirmSubmit" type="submit" value="搜索" name="submit_search"  style="margin-left:10px"/>
        </span></div>
         
        </td>
        </tr>
</form>
</table>
</div>


    
  
<form class="view-index-form mt-10" method="post" action="<?php echo $this->createUrl('batch');?>" enctype="multipart/form-data">
<table class="view-index-list" border="0" cellspacing="0" cellpadding="0" width="100%">
    <thead>
        <tr>
                        <th align="center" width="30">序号</th>
                        
                        
                        <th align="left" width="140">评论人</th>
                        <th align="left">评论</th>
                        <th align="center" width="120">评论时间</th>
                        
                        <th class="norightborder" width="100">操作</th>
        </tr>
    </thead>
    <tbody>
     
   <?php $i=1;?>
   <?php foreach ($commentlist as $k => $v) { ?>
        
     <tr>
         <?php if($v['parentid'] == 0){?> 
          <td align="center"><span><?php echo $i;?></span></td> 
          <td><?php echo $v['nickname'];?>发表了评论</td>
          <?php $i++;?>
         <?php }else {?>
          <td></td> 
          <td><?php echo $v['nickname']."回复@".$v['replyname']?></td>
        <?php }?>
         <td class='left'><?php echo htmlspecialchars($v['content']);?></td>
         <td width="80px"><?php echo date('Y:m:d H:i',$v['datetime']);?></td>
         <td class='td-operation'>
                  <a href="<?php echo  $this->createUrl($this->getId().'/isshow',array('replyid'=>$v['replyid'],'invisible'=>$v['invisible']==0?1:0));?>" title='确定要<?php echo $v['invisible']==0?'恢复':'屏蔽'?>' class='operation-delete'><?php echo $v['invisible']==0?"恢复":"屏蔽";?></a>
                  <a href="<?php echo $this->createUrl($this->getId().'/Deletereply',array('replyid'=>$v['replyid'],'postid'=>$v['postid'],'parentid'=>$v['parentid']));?>" title='确定要删除吗' class='operation-delete'>删除</a>
        </td>
    </tr>

  <?php }?>







  </tbody>
    
</table>


<input type="hidden" class="input-text" id="YII_CSRF_TOKEN" name="YII_CSRF_TOKEN" value="<?php echo Yii::app()->request->csrfToken;?>">
</form>

<script>
$(function(){
  //添加位置导航文字 请修改
	admin_location('版块管理 > 版块列表');
})
</script>
<?php $this->renderPartial('/_include/_footer');?></body>
</html>